PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Polar Mirror / martin - ghost city [bipolar alien composite].milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=6 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.160 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.080 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.900 |
| 49 | ob_size=0.010 |
| 50 | ob_r=1.000 |
| 51 | ob_g=1.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=0.700 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=120 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.89152 |
| 83 | wavecode_0_smoothing=0.82000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.600 |
| 88 | wave_0_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 89 | wave_0_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 90 | wave_0_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 91 | wave_0_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 92 | wave_0_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 93 | wave_0_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 94 | wave_0_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 95 | wave_0_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 96 | wave_0_init9= |
| 97 | wave_0_per_frame1=t2 = t2 + bass_att; |
| 98 | wave_0_per_point1=k1 = (sample*100)%8; |
| 99 | wave_0_per_point2=k2 = bnot (k1); |
| 100 | wave_0_per_point3=xi = value1*k2 + xi*(1-k2); |
| 101 | wave_0_per_point4=yi = value2*(1-k2) + yi*k2; |
| 102 | wave_0_per_point5= |
| 103 | wave_0_per_point6=dx = dx*.99 + xi; |
| 104 | wave_0_per_point7=dy = dy*.99 + yi; |
| 105 | wave_0_per_point8= |
| 106 | wave_0_per_point9=x = .5 + xi/2; |
| 107 | wave_0_per_point10=y = .5 + yi/2; |
| 108 | wave_0_per_point11= |
| 109 | wave_0_per_point12=a = q22/8; |
| 110 | wave_0_per_point13=a = min(a,.4); |
| 111 | wavecode_1_enabled=0 |
| 112 | wavecode_1_samples=512 |
| 113 | wavecode_1_sep=0 |
| 114 | wavecode_1_bSpectrum=0 |
| 115 | wavecode_1_bUseDots=1 |
| 116 | wavecode_1_bDrawThick=1 |
| 117 | wavecode_1_bAdditive=0 |
| 118 | wavecode_1_scaling=0.89152 |
| 119 | wavecode_1_smoothing=0.82000 |
| 120 | wavecode_1_r=1.000 |
| 121 | wavecode_1_g=1.000 |
| 122 | wavecode_1_b=1.000 |
| 123 | wavecode_1_a=0.100 |
| 124 | wave_1_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 125 | wave_1_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 126 | wave_1_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 127 | wave_1_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 128 | wave_1_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 129 | wave_1_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 130 | wave_1_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 131 | wave_1_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 132 | wave_1_init9= |
| 133 | wave_1_per_frame1=tm = time*.1; |
| 134 | wave_1_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7); |
| 135 | wave_1_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8); |
| 136 | wave_1_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1); |
| 137 | wave_1_per_frame5= |
| 138 | wave_1_per_frame6=tic = min(time - tin,1); |
| 139 | wave_1_per_frame7=tin = time; |
| 140 | wave_1_per_frame8= |
| 141 | wave_1_per_frame9=tva = (tic*q1*.5); |
| 142 | wave_1_per_frame10=tvb = (tic*q2*.5); |
| 143 | wave_1_per_frame11=tvc = (tic*q3*.5); |
| 144 | wave_1_per_frame12= |
| 145 | wave_1_per_frame13=q1 = tva; |
| 146 | wave_1_per_frame14=q2 = tvb; |
| 147 | wave_1_per_frame15=q3 = tvc; |
| 148 | wave_1_per_frame16= |
| 149 | wave_1_per_frame17=sz = .5; |
| 150 | wave_1_per_frame18=len = q4; |
| 151 | wave_1_per_frame19=t4 = len; |
| 152 | wave_1_per_point1=xi = int(rand(100))/100; |
| 153 | wave_1_per_point2=yi = int(rand(100))/100; |
| 154 | wave_1_per_point3= |
| 155 | wave_1_per_point4=x = xi; y = yi; |
| 156 | wave_1_per_point5= |
| 157 | wave_1_per_point6=a = q21/15; |
| 158 | wavecode_2_enabled=0 |
| 159 | wavecode_2_samples=512 |
| 160 | wavecode_2_sep=0 |
| 161 | wavecode_2_bSpectrum=0 |
| 162 | wavecode_2_bUseDots=1 |
| 163 | wavecode_2_bDrawThick=1 |
| 164 | wavecode_2_bAdditive=0 |
| 165 | wavecode_2_scaling=0.89152 |
| 166 | wavecode_2_smoothing=0.82000 |
| 167 | wavecode_2_r=0.000 |
| 168 | wavecode_2_g=0.200 |
| 169 | wavecode_2_b=0.000 |
| 170 | wavecode_2_a=1.000 |
| 171 | wave_2_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 172 | wave_2_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 173 | wave_2_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 174 | wave_2_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 175 | wave_2_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 176 | wave_2_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 177 | wave_2_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 178 | wave_2_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 179 | wave_2_init9= |
| 180 | wave_2_per_frame1=tm = time*.1; |
| 181 | wave_2_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7); |
| 182 | wave_2_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8); |
| 183 | wave_2_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1); |
| 184 | wave_2_per_frame5= |
| 185 | wave_2_per_frame6=tic = min(time - tin,1); |
| 186 | wave_2_per_frame7=tin = time; |
| 187 | wave_2_per_frame8= |
| 188 | wave_2_per_frame9=tva = (tic*q1*.5); |
| 189 | wave_2_per_frame10=tvb = (tic*q2*.5); |
| 190 | wave_2_per_frame11=tvc = (tic*q3*.5); |
| 191 | wave_2_per_frame12= |
| 192 | wave_2_per_frame13=q1 = tva; |
| 193 | wave_2_per_frame14=q2 = tvb; |
| 194 | wave_2_per_frame15=q3 = tvc; |
| 195 | wave_2_per_frame16= |
| 196 | wave_2_per_frame17=sz = .5; |
| 197 | wave_2_per_frame18=len = 1; |
| 198 | wave_2_per_frame19=t4 = len; |
| 199 | wavecode_3_enabled=0 |
| 200 | wavecode_3_samples=512 |
| 201 | wavecode_3_sep=0 |
| 202 | wavecode_3_bSpectrum=1 |
| 203 | wavecode_3_bUseDots=1 |
| 204 | wavecode_3_bDrawThick=0 |
| 205 | wavecode_3_bAdditive=0 |
| 206 | wavecode_3_scaling=1.00000 |
| 207 | wavecode_3_smoothing=0.50000 |
| 208 | wavecode_3_r=1.000 |
| 209 | wavecode_3_g=1.000 |
| 210 | wavecode_3_b=1.000 |
| 211 | wavecode_3_a=1.000 |
| 212 | shapecode_0_enabled=0 |
| 213 | shapecode_0_sides=4 |
| 214 | shapecode_0_additive=0 |
| 215 | shapecode_0_thickOutline=0 |
| 216 | shapecode_0_textured=1 |
| 217 | shapecode_0_num_inst=1 |
| 218 | shapecode_0_x=0.480 |
| 219 | shapecode_0_y=0.400 |
| 220 | shapecode_0_rad=0.21778 |
| 221 | shapecode_0_ang=0.00000 |
| 222 | shapecode_0_tex_ang=0.00000 |
| 223 | shapecode_0_tex_zoom=1.14017 |
| 224 | shapecode_0_r=1.000 |
| 225 | shapecode_0_g=1.000 |
| 226 | shapecode_0_b=1.000 |
| 227 | shapecode_0_a=1.000 |
| 228 | shapecode_0_r2=1.000 |
| 229 | shapecode_0_g2=0.600 |
| 230 | shapecode_0_b2=0.000 |
| 231 | shapecode_0_a2=1.000 |
| 232 | shapecode_0_border_r=1.000 |
| 233 | shapecode_0_border_g=1.000 |
| 234 | shapecode_0_border_b=0.000 |
| 235 | shapecode_0_border_a=0.000 |
| 236 | shapecode_1_enabled=0 |
| 237 | shapecode_1_sides=4 |
| 238 | shapecode_1_additive=0 |
| 239 | shapecode_1_thickOutline=1 |
| 240 | shapecode_1_textured=0 |
| 241 | shapecode_1_num_inst=1 |
| 242 | shapecode_1_x=0.400 |
| 243 | shapecode_1_y=0.500 |
| 244 | shapecode_1_rad=2.36696 |
| 245 | shapecode_1_ang=0.00000 |
| 246 | shapecode_1_tex_ang=3.45575 |
| 247 | shapecode_1_tex_zoom=0.99305 |
| 248 | shapecode_1_r=0.500 |
| 249 | shapecode_1_g=0.000 |
| 250 | shapecode_1_b=1.000 |
| 251 | shapecode_1_a=0.200 |
| 252 | shapecode_1_r2=0.700 |
| 253 | shapecode_1_g2=0.400 |
| 254 | shapecode_1_b2=0.000 |
| 255 | shapecode_1_a2=0.000 |
| 256 | shapecode_1_border_r=0.500 |
| 257 | shapecode_1_border_g=0.500 |
| 258 | shapecode_1_border_b=0.500 |
| 259 | shapecode_1_border_a=0.000 |
| 260 | shape_1_per_frame1=a2 =0;a = 0; |
| 261 | shape_1_per_frame2=a = q24/2; |
| 262 | shapecode_2_enabled=0 |
| 263 | shapecode_2_sides=4 |
| 264 | shapecode_2_additive=0 |
| 265 | shapecode_2_thickOutline=0 |
| 266 | shapecode_2_textured=0 |
| 267 | shapecode_2_num_inst=1 |
| 268 | shapecode_2_x=0.503 |
| 269 | shapecode_2_y=0.500 |
| 270 | shapecode_2_rad=0.03886 |
| 271 | shapecode_2_ang=0.00000 |
| 272 | shapecode_2_tex_ang=0.00000 |
| 273 | shapecode_2_tex_zoom=0.60986 |
| 274 | shapecode_2_r=1.000 |
| 275 | shapecode_2_g=0.100 |
| 276 | shapecode_2_b=0.000 |
| 277 | shapecode_2_a=0.900 |
| 278 | shapecode_2_r2=1.000 |
| 279 | shapecode_2_g2=1.000 |
| 280 | shapecode_2_b2=1.000 |
| 281 | shapecode_2_a2=0.000 |
| 282 | shapecode_2_border_r=0.500 |
| 283 | shapecode_2_border_g=0.500 |
| 284 | shapecode_2_border_b=0.500 |
| 285 | shapecode_2_border_a=0.000 |
| 286 | shape_2_per_frame1=x = .3+int(rand(10))/30; |
| 287 | shape_2_per_frame2=y = .3+int(rand(10))/30; |
| 288 | shape_2_per_frame3= |
| 289 | shape_2_per_frame4=r = int(rand(4))/3; |
| 290 | shape_2_per_frame5=g = int(rand(4))/3; |
| 291 | shape_2_per_frame6=b = int(rand(4))/3; |
| 292 | shape_2_per_frame7= |
| 293 | shape_2_per_frame8= |
| 294 | shape_2_per_frame9=is_beat = above(time, t0+.03); |
| 295 | shape_2_per_frame10=t0 = is_beat*time + (1-is_beat)*t0; |
| 296 | shape_2_per_frame11= |
| 297 | shape_2_per_frame12= |
| 298 | shape_2_per_frame13=a = min(q21/2 ,.9) * is_beat; |
| 299 | shape_2_per_frame14=rad = a*a/3 ; |
| 300 | shapecode_3_enabled=0 |
| 301 | shapecode_3_sides=63 |
| 302 | shapecode_3_additive=0 |
| 303 | shapecode_3_thickOutline=0 |
| 304 | shapecode_3_textured=1 |
| 305 | shapecode_3_num_inst=1 |
| 306 | shapecode_3_x=0.500 |
| 307 | shapecode_3_y=1.000 |
| 308 | shapecode_3_rad=0.54822 |
| 309 | shapecode_3_ang=0.00000 |
| 310 | shapecode_3_tex_ang=0.00000 |
| 311 | shapecode_3_tex_zoom=0.49981 |
| 312 | shapecode_3_r=1.000 |
| 313 | shapecode_3_g=1.000 |
| 314 | shapecode_3_b=1.000 |
| 315 | shapecode_3_a=1.000 |
| 316 | shapecode_3_r2=1.000 |
| 317 | shapecode_3_g2=1.000 |
| 318 | shapecode_3_b2=1.000 |
| 319 | shapecode_3_a2=0.000 |
| 320 | shapecode_3_border_r=0.500 |
| 321 | shapecode_3_border_g=0.500 |
| 322 | shapecode_3_border_b=0.500 |
| 323 | shapecode_3_border_a=0.000 |
| 324 | per_frame_1=dec_med = pow (0.9, 30/fps); |
| 325 | per_frame_2=dec_slow = pow (0.99, 30/fps); |
| 326 | per_frame_3=beat = max (max (bass, mid), treb); |
| 327 | per_frame_4=avg = avg*dec_slow + beat*(1-dec_slow); |
| 328 | per_frame_5=is_beat = above(beat, .2+avg+peak) * above (time, t0+.2); |
| 329 | per_frame_6=t0 = is_beat*time + (1-is_beat)*t0; |
| 330 | per_frame_7=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 331 | per_frame_8=index = (index + is_beat) %8; |
| 332 | per_frame_9= |
| 333 | per_frame_10=q20 = avg; |
| 334 | per_frame_11=q21 = beat; |
| 335 | per_frame_12=q22 = peak; |
| 336 | per_frame_13=q23 = index; |
| 337 | per_frame_14=q24 = is_beat; |
| 338 | per_frame_15=q26 = bass + mid + treb; |
| 339 | per_frame_16= |
| 340 | per_frame_17=k1 = is_beat*equal(index,0); |
| 341 | per_frame_18=p1 = k1*(p1+1) + (1-k1)*p1; |
| 342 | per_frame_19=p2 = dec_slow * p2+ (1-dec_slow)*p1; |
| 343 | per_frame_20=rott = p2 * 3.1416/4; |
| 344 | per_frame_21=q27 = index + 1; |
| 345 | per_frame_22= |
| 346 | per_frame_23=q1 = cos(rott); |
| 347 | per_frame_24=q2 = sin(rott); |
| 348 | per_frame_25=q3 = -q2; |
| 349 | per_frame_26=q4 = q1; |
| 350 | per_frame_27= |
| 351 | per_frame_28=zoom = 1.0; |
| 352 | per_frame_29=rot = -0.00 * index; |
| 353 | per_frame_30= |
| 354 | per_frame_31=q32 = pow(0.996, 30/fps); //fade |
| 355 | per_frame_32=q5 = (sin(time/11)+1)/5; |
| 356 | per_frame_33= |
| 357 | per_frame_34=movez = movez + .06/fps*(1.1+q1); |
| 358 | per_frame_35=q6 = movez; |
| 359 | per_frame_36= |
| 360 | per_frame_37=q7 = .005*sin(time/15); |
| 361 | warp_1=`sampler sampler_pw_noise_lq; |
| 362 | warp_2=`float3 color, mus, neu, ret1, noise, noise2; |
| 363 | warp_3=`float2 uv1, rs0, rs, uv2, uv3, dz, hor, ver; |
| 364 | warp_4=`float dx,dy,speed; |
| 365 | warp_5=`shader_body { |
| 366 | warp_6=`speed = .3; |
| 367 | warp_7=`uv1 = uv-float2(0.5,q5); |
| 368 | warp_8=`float z = 1/(uv1.y); |
| 369 | warp_9=`rs0.x = (uv1.x)*z; |
| 370 | warp_10=`rs0.y = z; |
| 371 | warp_11=`rs.x = rs0.x *1; |
| 372 | warp_12=`rs.y = rs0.y + time*speed; |
| 373 | warp_13=` |
| 374 | warp_14=` |
| 375 | warp_15=`//Kacheln |
| 376 | warp_16=`noise = lum(tex2D(sampler_pw_noise_lq,rs/63 )); |
| 377 | warp_17=`noise *= lum(tex2D(sampler_pw_noise_lq,rs/12 ))+.5; |
| 378 | warp_18=`noise *= saturate(10*noise - 8) * saturate(2/z); |
| 379 | warp_19=`noise2 = saturate(8* (lum(tex2D(sampler_pw_noise_lq,uv))-.5)); |
| 380 | warp_20=` |
| 381 | warp_21=`speed *= 2; |
| 382 | warp_22=`float3 copy = + GetPixel(float2(uv.x,uv.y-.04*speed/z)); |
| 383 | warp_23=`copy +=GetPixel(float2(uv.x,uv.y-.02*speed/z)); |
| 384 | warp_24=`copy +=GetPixel(float2(uv.x,uv.y-.01*speed/z)); |
| 385 | warp_25=` |
| 386 | warp_26=`ret = noise*1 + copy/3*(1+slow_roam_cos)/2*.99-.005; |
| 387 | warp_27=` |
| 388 | warp_28=` |
| 389 | warp_29=`} |
| 390 | comp_1=`float2 complex_div(float2 numerator, float2 denominator){ |
| 391 | comp_2=` return float2( numerator.x*denominator.x + numerator.y*denominator.y, |
| 392 | comp_3=` numerator.y*denominator.x - numerator.x*denominator.y)/ |
| 393 | comp_4=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 394 | comp_5=`} |
| 395 | comp_6=` |
| 396 | comp_7=`float2 uv_polar(float2 domain, float2 center){ |
| 397 | comp_8=` float2 c = domain - center; |
| 398 | comp_9=` float rad_hq = length(c); |
| 399 | comp_10=` float ang_hq = atan2(c.x,c.y); |
| 400 | comp_11=` return float2(ang_hq*M_INV_PI_2, rad_hq); |
| 401 | comp_12=`} |
| 402 | comp_13=` |
| 403 | comp_14=`float2 uv_polar_logarithmic(float2 domain, float2 center, int fins, float log_factor, float2 coord){ |
| 404 | comp_15=` float2 polar = uv_polar(domain, center); |
| 405 | comp_16=` return float2(polar.x*fins+coord.x, log_factor*log(polar.y) + coord.y); |
| 406 | comp_17=`} |
| 407 | comp_18=` |
| 408 | comp_19=`float2 uv_moebius_transformation(float2 domain, float2 zeroPoint, float2 infinityPoint,float zoom){ |
| 409 | comp_20=` return complex_div((domain - zeroPoint)*zoom, domain - infinityPoint)+0.5; |
| 410 | comp_21=`} |
| 411 | comp_22=` |
| 412 | comp_23=`float2 uv_bipolar(float2 domain, float2 northPole, float2 southPole, int fins, float log_factor, float2 coord){ |
| 413 | comp_24=` float2 help_uv = uv_moebius_transformation(domain, northPole, southPole, 1); |
| 414 | comp_25=` return uv_polar_logarithmic(help_uv,0.5,fins,log_factor,coord); |
| 415 | comp_26=`} |
| 416 | comp_27=` |
| 417 | comp_28=` |
| 418 | comp_29=`float2 uv_rotate( float2 domain, float2 center, float sinw, float cosw, float scale){ |
| 419 | comp_30=` float2 uv_r = (domain-center); |
| 420 | comp_31=` return center + float2( cosw*uv_r.x - sinw*uv_r.y, sinw*uv_r.x + cosw*uv_r.y)*scale; |
| 421 | comp_32=`} |
| 422 | comp_33=` |
| 423 | comp_34=` |
| 424 | comp_35=`shader_body |
| 425 | comp_36=`{ |
| 426 | comp_37=`float2 rotate_uv = 0.5+uv_rotate(0 + (uv-0.5)*aspect.xy, 0, q3, q4, 2); |
| 427 | comp_38=`float2 bipolar_uv = uv_bipolar(rotate_uv,float2(0,0.5),float2(1,0.5), 2, 0.2, float2(q11,q12)); |
| 428 | comp_39=`uv = 0.5 + (0.5 - abs( frac( bipolar_uv * 0.5 ) * 2.0 - 1.0 )).yx*0.98; |
| 429 | comp_40=` float2 d = texsize.zw; |
| 430 | comp_41=` float3 dx = ( GetPixel(uv+float2(1,0)*d)-GetPixel(uv-float2(1,0)*d) ); |
| 431 | comp_42=` float3 dy = ( GetPixel(uv+float2(0,1)*d)-GetPixel(uv-float2(0,1)*d) ); |
| 432 | comp_43=`float2 dz = float2(dx.y,dy.y)*3; |
| 433 | comp_44=` |
| 434 | comp_45=`d = texsize.zw*1.2; |
| 435 | comp_46=`dx = ( 2*GetBlur1(uv+float2(1,0)*d)-2*GetBlur1(uv-float2(1,0)*d) ); |
| 436 | comp_47=`dy = ( 2*GetBlur1(uv+float2(0,1)*d)-2*GetBlur1(uv-float2(0,1)*d) ); |
| 437 | comp_48=` |
| 438 | comp_49=`dz +=float2(dx.y,dy.y); |
| 439 | comp_50=` |
| 440 | comp_51=`float3 bg = pow(length(dz)*0.8+0,0.7) + GetBlur2(uv).y*0.4-0.1; |
| 441 | comp_52=` |
| 442 | comp_53=`ret = bg*float3(0.3,0.5,0.7); |
| 443 | comp_54=`ret = lerp(ret,float3(0.2,0.1,0),GetPixel(uv + float2(dx.x,dy.x)*texsize.zw*18).x*6); |
| 444 | comp_55=`ret = lerp(ret,1,GetPixel(uv).z); |
| 445 | comp_56=` |
| 446 | comp_57=`//ret = GetPixel(uv); |
| 447 | comp_58=`} |